import request from '@/utils/request'

// 查询程序类型列表
export function listSkills(query) {
  return request({
    url: '/dashboard/skills/list',
    method: 'get',
    params: query
  })
}

// 查询程序类型详细
export function getSkills(id) {
  return request({
    url: '/dashboard/skills/' + id,
    method: 'get'
  })
}

// 新增程序类型
export function addSkills(data) {
  return request({
    url: '/dashboard/skills',
    method: 'post',
    data: data
  })
}

// 修改程序类型
export function updateSkills(data) {
  return request({
    url: '/dashboard/skills',
    method: 'put',
    data: data
  })
}

// 删除程序类型
export function delSkills(id) {
  return request({
    url: '/dashboard/skills/' + id,
    method: 'delete'
  })
}
